#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20230706.sql ./mysql/db
cp ../sql/ry_config_20220929.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../onLineCar-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy onLineCar-gateway "
cp ../onLineCar-gateway/target/onLineCar-gateway.jar ./onLineCar/gateway/jar

echo "begin copy onLineCar-auth "
cp ../onLineCar-auth/target/onLineCar-auth.jar ./onLineCar/auth/jar

echo "begin copy onLineCar-visual "
cp ../onLineCar-visual/onLineCar-monitor/target/onLineCar-visual-monitor.jar  ./onLineCar/visual/monitor/jar

echo "begin copy onLineCar-modules-system "
cp ../onLineCar-modules/onLineCar-system/target/onLineCar-modules-system.jar ./onLineCar/modules/system/jar

echo "begin copy onLineCar-modules-file "
cp ../onLineCar-modules/onLineCar-file/target/onLineCar-modules-file.jar ./onLineCar/modules/file/jar

echo "begin copy onLineCar-modules-job "
cp ../onLineCar-modules/onLineCar-job/target/onLineCar-modules-job.jar ./onLineCar/modules/job/jar

echo "begin copy onLineCar-modules-gen "
cp ../onLineCar-modules/onLineCar-gen/target/onLineCar-modules-gen.jar ./onLineCar/modules/gen/jar

